<template>
  <div class="page textBg3">
    <div class="container">
      <div class="back">wonderful</div>
      <div class="front">wonderful</div>
    </div>
  </div>
</template>
<script setup>
import {} from "vue";
</script>
<style lang="scss">
.textBg3 {
  background-color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  .container {
    position: relative;
    min-width: 600px;
    height: 100px;
    font-size: 80px;
    line-height: 100px;
    font-weight: 600;
    color: transparent;
    text-transform: uppercase;
    text-align: center;
  }
  .container > div {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    -webkit-background-clip: text;
  }
  .back {
    background-color: #666;
  }
  .front {
    background: linear-gradient(60deg, #1abc9c, #fbc531, #9c88ff, #3498db, #fd79a8);
    animation: text3-clip 3s linear infinite alternate;
  }
  @keyframes text3-clip {
    0% {
      clip-path: circle(60px at 0% 50%);
    }
    100% {
      clip-path: circle(60px at 100% 50%);
    }
  }
}
</style>